static void
ostree_labeling_context_cleanup (OstreeLabelingContext *secontext)
{
+#ifdef HAVE_SELINUX
if (secontext->hnd)
selabel_close (secontext->hnd);
+#endif
}
static gboolean
#endif
}
+#ifdef HAVE_SELINUX
static gboolean
selinux_relabel_file (OstreeLabelingContext *secontext,
GFile *path,
GCancellable *cancellable,
GError **error)
{
-#ifdef HAVE_SELINUX
gboolean ret = FALSE;
if (secontext->have_policy)
ret = TRUE;
out:
return ret;
-#else
- return TRUE;
-#endif
}
+#endif
static gboolean
selinux_relabel_var_if_needed (OstreeSysroot *sysroot,